home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cchh01.arc / FILEIO2.H < prev    next >
Text File  |  1986-03-14  |  1KB  |  36 lines

  1. /*    fileio2.h    library i/o function header file for dos 2.00
  2.             NEW VERSION - by LPA 1/4/83
  3. */
  4.  
  5. struct bufstr{
  6.   unsigned bufflag;        /* control flags etc */
  7.   unsigned char buferet;    /* error return code */
  8.   unsigned char bufuget;    /* unget character storage */
  9.   int bufsize;            /* length of the buffer in bytes */
  10.   int bufnext;            /* next character to be read/written */
  11.   int buffill;            /* the number of characters in buffer */
  12.   int bufsync;            /* for buffer synchronization */
  13.   int buffull;            /* for buffer synchronization */
  14.   unsigned bufhand;        /* the handle for 2.00 files */
  15.   unsigned buffild;     /* the file descriptor for 2.00 files */
  16.   unsigned char bufdata[1];    /* the data buffer */
  17. };
  18.  
  19. #define BF_READ 1
  20. #define BF_WRITE 2
  21. #define BF_ASCII 4
  22. #define BF_UNGET 8
  23. #define BF_CDEV 0x10
  24. #define BF_DIRTY 0x20
  25. #define BF_ERROR 0x40
  26. #define BF_CRETFLG 0x80
  27.  
  28. #define MAXFILES 32        /* maximum file number */
  29.  
  30. extern unsigned char *_opentab[MAXFILES];    /* file table */
  31.  
  32. struct regval{unsigned ax,bx,cx,dx,si,di,ds,es;};
  33.  
  34. /*    end of fileio2.h
  35. */
  36.